import type { FC, ReactNode } from 'react'
import React, { memo } from 'react'
import BaseForm from '@/base-ui/base-form'
import myConfig from '@/base-ui/base-form/test-config'
import { Button, Switch } from 'antd'

interface IProps {
  children?: ReactNode
}

const DashBoard: FC<IProps> = (props) => {
  return (
    <div>
      <div>DashBoard</div>
      <BaseForm config={myConfig}>
        <Button key="btn2" type="primary" htmlType="submit">
          Submit
        </Button>
        <Switch
          key="ban"
          checkedChildren="开启"
          unCheckedChildren="关闭"
          defaultChecked
        />
      </BaseForm>
    </div>
  )
}

export default memo(DashBoard)
